public class Type {
    private String name;
    private int age;
    private String male;

    public Type(String name,int age,String male ){
        this.name = name;
        this.age = age;
        this.male = male;
    }
    public void print(){
        System.out.println("姓名:  " + name);
        System.out.println("年龄:  " + age);
        System.out.println("性别:  " + male);
    }


    public static void main(String[] args) {
        Type student1 = new Type("张三",18,"男");
        student1.print();

        Type stduent2 = new Type("李四",19,"男");
        stduent2.print();
    }
}
